package homeworkplus.day02;

/**
 * @Classname: Test02
 * @Author: bromide
 * @CreateTime: 2022/3/29--20:25
 * @Version: V1.0
 * @Desciption: 将字符串123, 456, 789, 012根据","拆分，并输出拆分后的每一项
 */
public class Test02 {
    public static void main(String[] args) {
        String s = "123,456,789,012";
        String[] arr = s.split(",");
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }
}
